<?
/**
 * @access public
 * @author pfagalde
 */
class EqualFieldValidator extends Validator {
	var $campo1;
	var $campo2;

	function EqualFieldValidator ($campo1,$campo2, $key = '') {
		$this->campo1 = $campo1;
		$this->campo2 = $campo2;
		$this->_key = $key;
	}

	function isValid() {
		return $_REQUEST[$this->campo1] == $_REQUEST[$this->campo2];
	}
}
?>